package org.shj.pattern.decorator;

public class ConcreteDecoratorA extends Decorator{

	private String addedState; //本类独有的功能，以区别于ConcreteDecoratorB
	
	public void operation(){
		super.operation(); //先运行原Component 的 operation()， 再执行本类的功能，相当于对原Component进行了装饰
		
		addedState = "new state";
		System.out.println("ConcreteDecoratorA add state: " + addedState);
	}
	
	
}
